package com.auxgroup.hr.front.dao.domain;

import java.io.Serializable;
import java.math.BigDecimal;

public class PsCPersonalInfoClass implements Serializable{

	private static final long serialVersionUID = -4804203926539988196L;
	
	private String emplid;
	
	private BigDecimal cSeqno;

	public String getEmplid() {
		return emplid;
	}

	public void setEmplid(String emplid) {
		this.emplid = emplid;
	}

	public BigDecimal getcSeqno() {
		return cSeqno;
	}

	public void setcSeqno(BigDecimal cSeqno) {
		this.cSeqno = cSeqno;
	}

	public PsCPersonalInfoClass(){}
	
	public PsCPersonalInfoClass(String emplid,BigDecimal cSeqno){
		this.emplid = emplid;
		this.cSeqno = cSeqno;
	}
	
	/* (non-Javadoc)
	 * @see java.lang.Object#hashCode()
	 */
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((cSeqno == null) ? 0 : cSeqno.hashCode());
		result = prime * result + ((emplid == null) ? 0 : emplid.hashCode());
		return result;
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		PsCPersonalInfoClass other = (PsCPersonalInfoClass) obj;
		if (cSeqno == null) {
			if (other.cSeqno != null)
				return false;
		} else if (!cSeqno.equals(other.cSeqno))
			return false;
		if (emplid == null) {
			if (other.emplid != null)
				return false;
		} else if (!emplid.equals(other.emplid))
			return false;
		return true;
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "PsCPersonalInfoClass [cSeqno=" + cSeqno + ", emplid=" + emplid + "]";
	}
	
}
